<?php
    echo form_open('admin/login/validate', array('id' => 'box-login'));
    echo '<p>';
    echo form_label('Name:', 'username', array('class' => 'req'));
    echo '<br />';
    echo form_input(array('name' => 'username', 'tabindex' => '2', 'id' => 'username', 'title' => 'Please enter your Username'), 'Username', 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Username\':this.value;"');
    echo '</p>';
    echo '<p>';
    echo form_label('Password:', 'password', array('class' => 'req'));
    echo '<br />';
    echo form_password(array('name' => 'password', 'tabindex' => '2', 'id' => 'password', 'title' => 'Please enter your Password'), 'Password', 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Password\':this.value;"');
    echo '</p><p class="fr">';
    echo form_submit(array('name' => 'login', 'class' => 'button themed', 'id' => 'login'), $this->lang->line('g_login'));
    echo '</p><div class="clear"></div>';
    echo form_close();
    
//    echo form_open('admin/forgot_password', array('class' => 'form'));
//    echo form_fieldset('<a href="#">'. $this->lang->line('cp_forgot_password').'</a>', array('class' => 'grey collapsed no-margin'));
//    echo '<p>';
//    echo form_label($this->lang->line('cp_enter_email'), 'email');
//    echo form_input(array('name' => 'email', 'id' => 'email', 'class' => 'fl'));
//    echo form_button(array('id' => 'forgotpass', 'class' => 'small fr', 'type' => 'submit'), $this->lang->line('g_send'));
//    echo '</p>';
//    echo form_fieldset_close();
//    echo form_close();
    ?>